package com.jack.client;

import com.jack.domain.model.Customer;
import com.jack.domain.model.PersonModel;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by LiJiakui on 17/4/19.
 */
@FeignClient("hello-provider")
public interface CustomerClient {
    @RequestMapping("/customer/getCustomer")
    Customer getCustomer();

    @RequestMapping("/person/selectById")
    PersonModel selectById(@RequestParam("id") Integer id);
}
